﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MazeMarauder
{
    class SplashState:State
    {
        private double elapsedTime;
        private const double initialTime = 0.0;
        private const double totalTime = 2.0;
        public override void Start()
        {
            elapsedTime = initialTime;
        }

        public override void Update(Microsoft.Xna.Framework.GameTime gameTime)
        {
            elapsedTime += gameTime.ElapsedGameTime.TotalSeconds;
        }

        public override void Draw(Microsoft.Xna.Framework.GameTime gameTime)
        {
            throw new NotImplementedException();
        }

        public override States NextState
        {
            get 
            {
                return elapsedTime < totalTime ? States.Splash : States.Title;
            }
        }
    }
}
